import type { PropType } from 'vue'
import {
  monacoEditorModel,
  BwMonacoEditorMenuModel,
  BwMonacoEditorSnippetsModel,
} from './model'

export const BwMonacoEditorProps = {
  /** 编辑器参数 */
  options: {
    type: [Object] as PropType<monacoEditorModel>,
  },
  /** 代码提示 */
  tips: {
    type: [String],
  },
  /** 右键菜单 */
  menus: {
    type: [Array] as PropType<Array<BwMonacoEditorMenuModel>>,
  },
  /** 代码片段 */
  snippets: {
    type: [Array] as PropType<Array<BwMonacoEditorSnippetsModel>>,
  },
  /** 自定义类型代码 */
  types: {
    type: [String],
  },
  save: () => {},
}
